package fr.mobile2you.golfplus;


import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.Dialog;
import fr.mobile2you.golfplus.gui.MainScreenPresenter;

public class GolfPlusApplication extends UiApplication{
	private static UiApplication application;

	public static void showErrorDialog(final String message) {
		UiApplication.getUiApplication().invokeLater(new Runnable() {
			public void run() {
				Dialog.alert(message);
			}
		});
	}

	public static void main(String[] args) {
		application = new GolfPlusApplication();
		application.enterEventDispatcher();
	}

	public GolfPlusApplication() {
		pushScreen(new MainScreenPresenter().getDisplay().asComponent());
	}

}
